<template>
  <div class="detail">
      <img :src="top250Detail.pic" alt="">
      <div>{{top250Detail.title}} </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      top250Detail:""
    }
  },
  mounted(){
    console.log(this.$route.params.id);
    var id = this.$route.params.id;
    this.$http(`http://47.108.197.28:4000/api/movieDetail?id=${id}`).then(res=>{
      console.log(res.data.res);
      this.top250Detail = res.data.res[0];
    })
  }
}
</script>

<style>

</style>